import {fileURLToPath, URL} from 'node:url'

import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from "node:path";
const __dirname = path.dirname(fileURLToPath(import.meta.url));

// https://vitejs.dev/config/
export default defineConfig({
	port: 8080,
	plugins: [vue(),],
	resolve: {
		alias: {
			'@': path.resolve(__dirname, './src'),
		}
	},
	transpileDependencies: true,
	devServer: {
		historyApiFallback: true,
		allowedHosts: 'all'
	}
})
